package org.jeecg.modules.basic.entry.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.jeecg.modules.basic.entry.entity.Apartment;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@DS("multi-datasource1")
public interface ApartmentMapper extends BaseMapper<Apartment> {

    void insertOrUpdate(String xq,String lh,String fjh,String roomState);//暂时没用

    String selectSqlServer(String xq,String lh,String fjh,String roomState);

    void insertSqlServer(String xq,String lh,String fjh,String roomState);

    void updateSqlServer(String xq,String lh,String fjh,String roomState);

    /** 临时添加 */
    void insertSqlServerTemp(String xq,String lh,String fjh,String roomState,String syncState);
    /** 临时添加 */
    void updateSqlServerTemp(String xq,String lh,String fjh,String roomState,String syncState);
    String  getFjCode(String xq,String lh,String fjh);

    List<Apartment> selectList(@Param("xq")String xq,@Param("lh")String lh, @Param("fjh")String fjh, @Param("state")String state, @Param("count")String count);

    List<Map<String,Object>> roomShutOff();
}
